Ext.define('DCApp.view.task.List', {
    extend: 'DCApp.view.PageList',
    alias: 'widget.Tasklist',
    
    viewModel: {
        type: 'tasklist'
    },

    columns: [
      	{text:'id',dataIndex:'id',filter:'number'},
		{text:'title',dataIndex:'title',filter:'string',width:300},
		{text:'description',dataIndex:'description',filter:'string',width:200}
    ],
    onDestroy: function () {
        // do some cleanup
    	var me=this;
    	if(me.sel_win){
    		//this.sel_win.destroy();
    		Ext.destroy(me.sel_win);
    		me.sel_win=null;
    	}
    	me.callParent();
    }
 });
